Skip to content

BaseStatelessSubjectAsync class

Defined in

Namespace: ReactiveUI.Extensions.Async.Subjects Assembly: ReactiveUI.Extensions.dll Full name: ReactiveUI.Extensions.Async.Subjects.BaseStatelessSubjectAsync<T> Modifiers: public abstract

Summary

View source

        Provides a base class for implementing asynchronous, stateless subjects that broadcast notifications to multiple
        observers. Supports asynchronous notification, error handling, and completion signaling for observers subscribing to
        the subject.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class BaseStatelessSubjectAsync~T~
class ObservableAsync~T~
ObservableAsync~T~ <|-- BaseStatelessSubjectAsync~T~
class ISubjectAsync~T~ {
    <>
}
ISubjectAsync~T~ <|.. BaseStatelessSubjectAsync~T~
class IObserverAsync~T~ {
    <>
}
IObserverAsync~T~ <|.. BaseStatelessSubjectAsync~T~
class IAsyncDisposable {
    <>
}
IAsyncDisposable <|.. BaseStatelessSubjectAsync~T~
class IObservableAsync~T~ {
    <>
}
IObservableAsync~T~ <|.. BaseStatelessSubjectAsync~T~

Inherits from: ObservableAsync

Implements: ISubjectAsync, IObserverAsync, IAsyncDisposable, IObservableAsync

Remarks

This abstract class enables the creation of custom asynchronous subjects that do not maintain internal state between notifications. It manages observer subscriptions and provides extensibility points for handling value notifications, error recovery, and completion events. Implementations should override the core notification methods to define specific broadcasting or error-handling behaviors. Thread safety and observer management are handled by the base class, allowing derived classes to focus on notification logic.

Constructors

NameSummary
.ctor

Methods

NameSummary
OnNextAsyncAsynchronously notifies all subscribed observers of a new value.
OnErrorResumeAsyncHandles an error by resuming the asynchronous operation, allowing observers to continue receiving notifications despite the specified exception.
OnCompletedAsyncNotifies all registered observers that the operation has completed and provides the final result asynchronously.
DisposeAsyncAsynchronously releases resources used by the current instance.
SubscribeAsyncCoreSubscribes the specified asynchronous observer to receive notifications from the observable sequence.
OnNextAsyncCoreAsynchronously notifies the specified observers with the provided value.
OnErrorResumeAsyncCoreHandles error recovery for the specified observers by resuming asynchronous processing after an error occurs.
OnCompletedAsyncCoreInvoked to asynchronously notify all observers of the completion event with the specified result.
Inherited members